﻿<script type="text/html" template lay-done="layui.data.done(d);">
    <div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-goods-codeForm" id="LAY-app-good-codeForm">


        <div class="layui-form-item">
            <label for="mobile" class="layui-form-label  layui-form-required">生成数量</label>
            <div class="layui-input-block">
                <input name="count" type="number" lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入需要生成数量" lay-reqText="请输入需要生成数量" />
            </div>
            <label for="mobile" class="layui-form-label  layui-form-required">选择经销商</label>
            <div class="layui-input-inline layui-inline-6" id="brandIdView">
                <select name="DistributorId" id="DistributorId">
                    <option value="0">请选择经销商</option>
                    {{# layui.each(d.params.data.jxs.result, function(index, item){ }}
                    <option value="{{ item.id }}">{{ item.name }}</option>
                    {{# }); }}
                </select>
            </div>
        </div>
        <span style="color:red;margin-left:15px;">*导出防伪链接excel后保存交给二维码标签打印厂商进行生产</span>
        <br />
        <span style="color: red; margin-left: 15px;">*Excel“货品积分防伪地址”内链接生成二维码，直接打开不可用。</span>

        <div class="layui-form-item text-right core-hidden">
            <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-goods-codeForm-submit" id="LAY-app-goods-codeForm-submit" value="确认生成">
        </div>
    </div>
</script>
<script>
    var debug = layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
            function () {
                var $ = layui.$
                    , form = layui.form
                    , laydate = layui.laydate


                $("#LAY-app-goods-codeForm-submit").click(function () {
                    //    console.log(d.params.data);
                });
                form.verify({

                });
                //重载form
                form.render(null, 'LAY-app-goods-codeForm');
            })
    };
</script>
